<table class="table table-condensed" id="th_ajaran">
  <thead>
	<tr>
		<th width="30">#</th>
		<th width="80">NIT</th>
		<th>Nama Lengkap</th>
		<th>Jenis Kelamin</th>
		<th>Kelas</th>
		<th>Subsidi</th>
		<th width="123">Besar Subsidi</th>
		<th width="123">Sisa Tagihan</th>
		<th></th>
	</tr>
  </thead>
  <tbody>
	<?php 
		if(count($list)>0){
			$i = 1; 
			foreach ($list as $row) {
	?>
	<tr class="hover">
		<td><?php echo $i++ ?></td>
		<td><?php echo $row->id_m_tholabah;?></td> 
		<td><?php echo $row->nama_lengkap;?></td> 
		<td><?php echo $row->jk;?></td>
		<td><?php echo $row->kelas;?></td>
		<td><?php echo $row->nama_subsidi;?></td>
		<td><?php echo formatRupiahTabel($row->besar_subsidi);?></td>
		<td><?php echo formatRupiahTabel($row->sisa);?></td>
		<td>
			<a class="editorLink pull-right" data-reveal-id="delModal" nama="<?php echo $row->nama_lengkap; ?>" 
			2nd="<?php echo $row->kelas;?>" 
			3rd="<?php echo $row->nama_subsidi;?>" 
			4th="<?php echo formatRupiah($row->besar_subsidi);?>" 
			5th="<?php foreach ($list_tag as $row_tag) {echo $row_tag->nama_non_sy;}?>" 
			6th="<?php foreach ($list_tag as $row_tag) {echo formatRupiah($row_tag->besar_bayar);}?>" 
			hpid="<?php echo $row->id_b_sub_non_sy;?>" data-reveal>
			<span class="glyphicon glyphicon-floppy-remove"></span></a>
		</td>
	</tr>
	<?php
			}
		}else{
	?>
	<tr>
		<td colspan="9"><center>Belum ada tholabah <?php foreach ($list_tag as $row) {echo $row->j_pendidikan;}?> tersubsidi tagihan <?php foreach ($list_tag as $row) {echo $row->nama_non_sy;}?></center></td>
	</tr>
	<?php
		}
	?>
  </tbody>
</table>